import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:lite_message/ui/root/splash_page.dart';

void main() {
  runApp(const MyApp());

  //状态栏透明
  SystemUiOverlayStyle systemUiOverlayStyle =
      SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Lite Meaasge',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        canvasColor: const Color(0xFFF1F1F1),
        accentColor: const Color(0xFF7696C0),
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      darkTheme: ThemeData.dark().copyWith(),
      home: const SplashPage(),
    );
  }
}
